package org.jackysoft.struts2.admin;
import java.util.Collection;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Namespace;
import org.jackysoft.entity.WebApplication;
import org.jackysoft.service.WebApplicationService;
import org.jackysoft.struts2.UtilsCRUDAction;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;



@Namespace("/webapplication")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class WebApplicationAction extends UtilsCRUDAction<WebApplication> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2655830020996528318L;
	private WebApplicationService service;
	private WebApplication bean;
	private Collection<WebApplication> beans;	
	
	
	public void setBean(WebApplication bean){
	     this.bean = bean;
	}
	public WebApplication getBean(){
	     return this.bean;
	}
	public void setBeans(Collection<WebApplication> beans){
	
	     this.beans = beans;
	}
	public Collection<WebApplication> getBeans(){
	     return this.beans;
	}
	
	@Resource
	public void setService(WebApplicationService service) {
		this.service = service;
		this.setDataProvider(service);
	}	
	
	public WebApplicationService getService(){
	   return this.service;
	}
		
}